runtime.pageCache.cache (field)
14 uses
runtime (current package)
mpagecache.go#L12: const pageCachePages = 8 * unsafe.Sizeof(pageCache{}.cache)
mpagecache.go#L20: cache uint64 // 64-bit bitmap representing free pages (1 means free)
mpagecache.go#L26: return c.cache == 0
mpagecache.go#L38: if c.cache == 0 {
mpagecache.go#L42: i := uintptr(sys.TrailingZeros64(c.cache))
mpagecache.go#L44: c.cache &^= 1 << i // set bit to mark in-use
mpagecache.go#L58: i := findBitRange64(c.cache, uint(npages))
mpagecache.go#L64: c.cache &^= mask // mark in-use bits
mpagecache.go#L90: if c.cache&(1<<i) != 0 {
mpagecache.go#L139: cache: ^chunk.pages64(j),
mpagecache.go#L156: cache: ^chunk.pages64(chunkPageIndex(addr)),
mpagecache.go#L164: chunk.allocPages64(cpi, c.cache)
mpagecache.go#L165: chunk.scavenged.clearBlock64(cpi, c.cache&c.scav /* free and scavenged */)
mpagecache.go#L171: p.scav.index.alloc(ci, uint(sys.OnesCount64(c.cache)))
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |